package com.goodluck.goodluckim.sdk.event;

import com.goodluck.goodluckim.db.model.RecentSession;

/**
 * Created by GLC-009 on 2018/9/13.
 */

public class SessionEvent extends Event {
    private RecentSession recentSession;

    public SessionEvent(int eventType, RecentSession recentSession) {
        super(eventType);
        this.recentSession = recentSession;
    }

    public RecentSession getRecentSession() {
        return recentSession;
    }

    public class EventType {
        /**
         * 新增会话
         */
        public static final int ADD_SESSSION = 1;
        /**
         * 更新会话
         */
        public static final int UPDATE_SESSION = 2;
        /**
         * 更新未读数
         */
        public static final int UPDATE_UNREAD = 3;
    }
}
